/**
 * @description  : 心跳接口服务
 * @descriptionDetail : 心跳接口服务
 * @copyright    : 浙江烟草
 * @author       : mc
 * @create       : 2023-01-01 15:19:09
 */

import apiUrl from "@/common/api_urls/common/hear.js";
import reqHelper from "@/common/reqHelper";
let baseUrl = process.uniEnv.BASE_API;

export default {
  /**
   * 验证接口是否过期
   * @param {*} loginName   登录用户名 
   * @returns 
   */
  verifyTk() { // 
    let tk = uni.getStorageSync("tk") || sessionStorage.getItem('tk') || "";
    return reqHelper.get({ tk: tk,}, apiUrl.common.verifyTk, {});
  },
  /**
   * 续session
   */
  currentAccount(){
    return reqHelper.postForm({}, apiUrl.common.currentAccount, {});
  },
  
  baseUrl:baseUrl,
};